package com.bc.service;



public class CWException extends Exception {
	
	/**无任何异常*/
	public static final int EX_NONE=0;
	
	/**网络不可用*/
	public static final int EX_NETWORK_DISABLE = 1;
	
	/**访问超时*/
	public static final int EX_TIMEOUT = 1<<1;

	/**服务器错误*/
	public static final int EX_SERVER_ERROR = 1<<2;

	/**客户端错误*/
	public static final int EX_CLIENT_ERROR = 1<<3;
	
	/**未知异常*/
	public static final int EX_UNKNOWN=1<<4;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	
	private int errorCode;
	
	public CWException(int errorCode,String message) {
		super(message);
		this.errorCode=errorCode;
	}
	
	public int getErrorCode() {
		return errorCode;
	}

}
